<?php include 'header.php';?>
<?php include 'sidebar.php';?>
<?php
$id = $_REQUEST["id"];
$firstName = $_REQUEST["firstName"];
$lastName = $_REQUEST["lastName"];
$degree = $_REQUEST["degree"];
$department = $_REQUEST["department"];

$conn = mysql_connect("localhost", "root", "643313") or die(mysql_error());
mysql_select_db("regist_sys");

$sql = "INSERT INTO student VALUES ('" . $id . "', '" . $firstName . "', '" . $lastName . "', '" . $degree . "', '" . $department . "')";
mysql_query($sql);
?>
<div id="main">Register Success! Welcome to our university 
<?php 
	print $firstName . " " . $lastName;
?>!
</div>
<?php include 'footer.php';?>